package de.fhtrier.mp.wollmaus.gamestate.menus;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.state.StateBasedGame;

import de.fhtrier.mp.wollmaus.util.AssetManager;

public class MainState extends AbstractSubMenuState {
	
	public MainState(MenuState menu) {
		super(menu,AssetManager.IMAGE_MENU_MAIN);
	}
	
	// Spiel starten
	@Override
	public void button1Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		menu.startGameStart(sbg);
	}

	// Regeln
	@Override
	public void button2Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		menu.setMenuState(new RulesState(menu));
	}
	
	// Story
	@Override
	public void button3Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		menu.setMenuState(new StoryState(menu));
	}

	// Credits
	@Override
	public void button4Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		menu.setMenuState(new CreditsState(menu));
	}

	// Ende
	@Override
	public void button5Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		gc.exit();
	}

	// Back
	@Override
	public void buttonBackPressed(GameContainer gc, StateBasedGame sbg, int delta) {
	}
}
